<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons.jsp" %>
<html>
	<body>
		<ul id="tempul">
			<li id="comment_${param.commentid }">
				<div id="commentlist_left">
					<a href="#"><img src="${ctx }/avatar/${param.avatar }" /></a>
				</div>
				<div id="commentlist_right">
					<div class="comment_content">
						<a href="#">${param.nick }</a>: ${param.content }(${param.time })
					</div>
				</div>
				<div id="commentlist_bottom">
					<%--	如果评论是登录用户(sessionuserid)本人发表的（或所有用户针对登录用户发表的评论），登陆用户可以删除，显示链接	--%>
					<c:if test="${(param.userid eq param.sessionuserid) or (param.weibouserid eq param.sessionuserid) }">
					<a class="delete_comment_btn" href="javascript:delete_comment('${param.weiboid }', '${param.commentid }');">删除</a>
					</c:if>
					<a href="javascript:reply_comment('${param.weiboid }', '${param.nick }');">回复</a>
				</div>
				<div class="clear"></div>
			</li>
		</ul>
	</body>
</html>
